package org.springblade.modules.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.admin.dto.plan.PlanContentExcelSearchDTO;
import org.springblade.modules.admin.dto.sugar.SugarSearchDTO;
import org.springblade.modules.admin.entity.MaintainPlanContent;
import org.springblade.modules.admin.vo.plan.ExcelPlanContentVo;
import org.springblade.modules.admin.vo.plan.PlanUserVo;
import org.springblade.modules.admin.vo.sugar.ElevatorAndUserInfoVo;

import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2021/10/25 10:08
 */
public interface PlanContentExcelMapper extends BaseMapper<MaintainPlanContent> {


	/**
	 * 获取绩效统计的用户
	 * @param userName 名字搜索
	 * @param userStatus 在职状态
	 * @param tenantId
	 * @return
	 */
    List<PlanUserVo> getPlanUserVoInfo(IPage<PlanUserVo> page, @Param("userName") String userName, @Param("userStatus") Integer userStatus, @Param("tenantId")String tenantId);


	/**
	 * 获取维保信息
	 * @param planContentExcelSearchDTO
	 * @return
	 */
	List<ExcelPlanContentVo> getPlanContentInfo(@Param("planContentExcelSearchDTO") PlanContentExcelSearchDTO planContentExcelSearchDTO);

	List<MaintainPlanContent> getPlanListByBuildingIds(@Param("planContentExcelSearchVo") PlanContentExcelSearchDTO planContentExcelSearchDTO);

	ElevatorAndUserInfoVo getEleVatorAndUserInfo(SugarSearchDTO sugarSearchDTO);
}
